<template>
	<view></view>
</template>

<script>
	import {
		ajax
	} from '../../../ajax.js';
	export default {
		data() {
			return {
				head_image: "",
				level: "",
				mobile: "",
				name: "",
				classType:'',
				currentIndex:4,
				type:'',
				data:''
			}
		},
		components: {
			
		},
		onLoad(options) {
			let that = this
			that.type=options.type
			that.getorder()
		},
		methods:{
			getorder:function(){
				let that=this
				let token = uni.getStorageSync("token")
				console.log("token", token)
				ajax({
					url: 'order/myOrder',
					data: {
						token: token,
						firstNum:'1',
						num:'10',
						status:that.type
					},
					header: {
						'content-type': 'application/json' //自定义请求头信息
					},
					method: 'POST',
					success: function(res) {
						console.log(res.data);
						that.data=res.data.data.data
						
					},
					error: function() {
				
					}
				});
				
			}
			
		}
		
	}
</script>

<style lang="scss">
	
	
</style>
